// 获取视频评论 
import { get, post } from '@/server/http'


// 获取视频评论
export const getCommentAPI = (videoId, page) => get(`video/${videoId}/getVideoComment/page/${page}`)

// 获取视频评论点赞状态
export const getCommentLikeStatusAPI = (userId, commentId) => get(`user/${userId}/isLikedComment/${commentId}`)

// 提交视频评论
export const postCommentAPI = (data) => post(`user/commentVideo`, data)

// 点赞视频评论（点赞/取消点赞）
export const likeCommentAPI = (userId, videoId, commentId) => get(`user/${userId}/triggerLikeComment/${videoId}/${commentId}`)

// @好友请求
export const friendRequestAPI = (userId, data) => post(`user/${userId}/AtUser`, data)
// home页视频点赞
export const likeVideoAPI = (userId, videoId) => get(`user/${userId}/triggerLike/${videoId}`)
